<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title data-lang="VideoForMultipleUsers">Video For Multiple Users</title>
  <link rel="icon" href="../../../../favicon.ico" type="image/x-icon" />
  <link rel="stylesheet" href="../../../assets/css/bootstrap.min.css">
  <link rel="stylesheet" href="../../../assets/css/style.css">
  <link rel="stylesheet" href="./index.css">
  <script src="../../../assets/js/express_sdk/ZegoExpressWebRTC.js"></script>
</head>

<body class="fix-sidebar card-no-border">
  <div class="preloader">
    <svg class="circular" viewBox="25 25 50 50">
      <circle class="path" cx="50" cy="50" r="20" fill="none" stroke-width="2" stroke-miterlimit="10" />
    </svg>
  </div>

  <div class="container main-wrapper">
    <!-- <div class="row"> -->
    <div class="page-wrapper">
      <div class="container-fluid">
        <div class="row">
          <div class="col-12 login-wrapper">
            <h6  data-lang="Preconditions">前置条件</h6>
            <div class="login-desc" data-lang="PreconditionsDesc">
              体验该功能，需要模拟一个用户（UserID）登陆到对应的房间（RoomID）中，并且有权限（Token）时才可以登陆成功。
            </div>
            <div class="form-wrap font-14 row">
              <div class="form-item col-12 col-lg-4">
                <span>RoomID</span>
                <div class="icon-question">?
                  <div class="pop-box" data-lang="RoomIDDesc">Tooltip text</div>
                </div>
                <input type="text" id="RoomID" />
              </div>
              <div class="form-item col-12 col-lg-4">
                <span>UserID</span>
                <div class="icon-question">?
                  <div class="pop-box">
                    <span data-lang="UserIDDesc"></span>
                  </div>
                </div>
                <input type="text" id="UserID" />
              </div>
              <div class="form-item col-12 col-lg-4">
                <span>Token</span>
                <div class="icon-question">?
                  <div class="pop-box">
                    <span data-lang="TokenDesc"></span>
                    <a href="https://console.zego.im" data-lang="ApplyToken" target="_blank"></a>
                  </div>
                </div>
                <input type="text" class="w-70" id="Token" />
              </div>
            </div>
            <button id="LoginRoom" class="play-pause-button" title="loginRoom()" style="width: 120px;">
              <div class="success-svg m-r-5" id="loginSuccessSvg" style="display: none;">
                <svg class="ft-green-tick" xmlns="http://www.w3.org/2000/svg" height="15" width="15" viewBox="0 0 48 48"
                  aria-hidden="true">
                  <circle class="circle" fill="#5bb543" cx="24" cy="24" r="22" />
                  <path class="tick" fill="none" stroke="#FFF" stroke-width="6" stroke-linecap="round"
                    stroke-linejoin="round" stroke-miterlimit="10" d="M14 27l5.917 4.917L34 17" />
                </svg>
              </div>
              Login Room
            </button>
          </div>
        </div>
        <div class="row">
          <div class="col-12 col-lg-6 preview-wrapper">
            <div class="preview-roomInfo">
              RoomID:&nbsp;<div id="roomInfo-id" class="m-r-10"></div>
              RoomState:&nbsp;<div id="roomInfo-state">
                <div class="success-svg" id="roomStateSuccessSvg" style="display: none;">
                  <svg class="ft-green-tick" xmlns="http://www.w3.org/2000/svg" height="10" width="10"
                    viewBox="0 0 48 48" aria-hidden="true">
                    <circle class="circle" fill="#5bb543" cx="24" cy="24" r="22" />
                  </svg>
                </div>
                <div class="error-svg" id="roomStateErrorSvg" style="display: inline-block;">
                  <svg class="ft-green-tick" xmlns="http://www.w3.org/2000/svg" height="10" width="10"
                    viewBox="0 0 48 48" aria-hidden="true">
                    <circle class="circle" fill="#5bb543" cx="24" cy="24" r="22" />
                  </svg>
                </div>
              </div>
            </div>
            <div class="row" id="videoList">
              <div class="preview-pushlishInfo col-6">
                <div class="preview-content">
                  <div class="preview-action">
                    <div class="preview-info">
                      <div>Resolution: <span id="publishResolution"></span></div>
                      <div>Video Send Bitrate: <span id="sendBitrate"></span></div>
                      <div>Video Send FPS: <span id="sendFPS"></span></div>
                      <div>Packet Loss: <span id="sendPacket"></span></div>
                    </div>
                    <div class="preview-video-action">
                    </div>
                  </div>
                  <div id="localVideo"></div>

                </div>
                <div class="font-12 flex-b">
                  <div>
                    StreamID: <span id="publishStreamID-info"></span>
                  </div>
                  <div>
                    <svg t="1618919355738" class="icon" viewBox="0 0 1024 1024" version="1.1"
                      xmlns="http://www.w3.org/2000/svg" p-id="2173" width="20" height="20">
                      <path
                        d="M512 62.08A449.92 449.92 0 1 0 961.92 512 449.92 449.92 0 0 0 512 62.08z m0 135.04a135.04 135.04 0 1 1-135.04 135.04A134.72 134.72 0 0 1 512 197.12z m0 640a323.84 323.84 0 0 1-269.76-144.96c0-89.6 179.84-138.56 269.76-138.56s268.48 48.96 269.76 138.56A323.84 323.84 0 0 1 512 835.84z"
                        p-id="2174"></path>
                    </svg>
                  </div>
                </div>
                <div class="preview-video-action">

                  <button id="startPublishing" class="m-b-5 play-pause-button"
                    title="createStream()/ startPublishingStream()">Start Publishing</button>
                </div>
              </div>
            </div>
          </div>
          <div class="col-12 col-lg-6 action-wrapper">
            <div class="action-step">
              <div class="action-content">
                <div class="font-14 select-wrapper m-b-10 font-bold">
                  <span data-lang="CaptureResolution">Capture Resolution</span>
                  <select class="form-control form-control-sm m-l-5" id="captureResolution">
                    <option value="320*240">320 * 240</option>
                    <option value="640*480">640 * 480</option>
                    <option value="1280*720">1280 * 720</option>
                  </select>
                </div>
                <div class="videoQuality font-bold">
                  <div class="font-14 f-b-5">
                    <span data-lang="FPS">FPS</span> <input type="text" class="t-a-r" id="FPS" value="15" /> fps
                  </div>
                  <div class="font-14 f-b-5">
                    <span data-lang="Bitrate">Bitrate</span> <input type="text" class="t-a-r" id="Bitrate"
                      value="300" /> kbps
                  </div>
                </div>

                <div class="flex-c">
                  <div class="select-wrapper">
                    <span data-lang="Mirror">Mirror</span>
                    <select class="form-control form-control-sm m-l-5" id="Mirror">
                      <option value="none">none</option>
                      <option value="onlyPreview">onlyPreview</option>
                      <option value="onlyPlay">onlyPlay</option>
                      <option value="both">both</option>
                    </select>
                  </div>
                  <div class="check-wrappre">
                    <label class="form-check-label m-r-5" for="Camera" data-lang="Camera">Camera</label>
                    <input class="check-input" type="checkbox" id="Camera" checked>
                  </div>
                </div>
                <div class="flex-c">
                  <div class="select-wrapper">
                    <span data-lang="Camera">Camera</span>
                    <select class="form-control form-control-sm m-l-5" id="CameraDevices">
                    </select>
                  </div>
                  <div class="check-wrappre">
                    <label class="form-check-label m-r-5" for="Microphone"
                      data-lang="Microphone">Microphone</label>
                    <input class="check-input" type="checkbox" id="Microphone" checked>
                  </div>
                </div>
                <div class="dropdown-wrapper">
                  <span class="dropdown">
                    <a href="javascript:;" id="streamList">StreamList (0)</a>
                    <ul class="drop" id="streamListUl">
                    </ul>
                  </span>
                  <span class="dropdown m-l-10">
                    <a href="javascript:;" id="userList">UserList (0)</a>
                    <ul class="drop" id="userListUl">
                    </ul>
                  </span>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
      <ul class="goToDoc">
        <li>
          <span data-lang="HelpDocsVideoCodec"> Web 端视频编码默认使用 VP8。如果需要体验和其他端互通或者转推 CDN 功能，请在调试与配置页面修改为 H.264。</span>
          &nbsp;
          <a href="../../DebugAndConfig/LogAndVersionAndDebug/index.html" data-lang="HelpSettingsPage" target="_blank">
            点击修改 </a>
        </li>
        <li>
          <span data-lang="MoreDocs">更多文档，请跳转至即构 </span> &nbsp;
          <a href="https://doc-zh.zego.im/article/9675" data-lang="HelpDocs" target="_blank"> 帮助文档 </a>
        </li>
      </ul>
    </div>
    <!-- </div> -->
  </div>

  <script src="../../../assets/js/left-menu.js"></script>
  <script src="../../../assets/js/jquery.min.js"></script>
  <script src="../../../assets/js/jquery.i18n.properties.min.js"></script>
  <script src="../../../assets/js/metisMenu.min.js"></script>
  <script src="../../../assets/js/jquery.slimscroll.min.js"></script>
  <script src="../../../assets/js/bootstrap.min.js"></script>
  <script src="../../../assets/js/vconsole.min.js"></script>
  <script src="../../../assets/js/custom.js"></script>
  <script src="../../../KeyCenter.js"></script>
  <script src="index.js"></script>
</body>

</html>